<?php
class Gallery extends AppModel {

	var $name = 'Gallery';
	var $validate = array(
		'name' => VALID_NOT_EMPTY,
		'url' => VALID_NOT_EMPTY,
		'primary_image' => VALID_NUMBER,
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $hasAndBelongsToMany = array(
			'Image' => array('className' => 'Image',
						'joinTable' => 'galleries_images',
						'foreignKey' => 'gallery_id',
						'associationForeignKey' => 'image_id',
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'limit' => '',
						'offset' => '',
						'unique' => '',
						'finderQuery' => '',
						'deleteQuery' => '',
						'insertQuery' => ''),
	);

}
?>